from system_manage import create_app
from system_manage.models import db

from flask_script import Manager, Command
from flask_migrate import MigrateCommand

app = create_app()


# add_kpi()


class RunSever(Command):
    def run(self):
        app.run(
            debug=True
        )


manage = Manager(app)
manage.add_command('runSever', RunSever)
manage.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manage.run(
    )
